package com.layui.ad.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.layui.ad.entity.Community;
import com.layui.ad.query.CommunityQuery;
import com.layui.ad.vo.CommunityListVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommunityMapper extends BaseMapper<Community> {
    int deleteByPrimaryKey(Integer id);

    int insert(Community record);

    int insertSelective(Community record);

    Community selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Community record);

    int updateByPrimaryKeyWithBLOBs(Community record);

    int updateByPrimaryKey(Community record);

    List<CommunityListVo> selectRecordList(@Param("params") CommunityQuery communityQuery);

    List<Community> selectAllByPage();
}